﻿@model List<Like>
@if (Model != null && Model.Count > 0)
{
    int x = 0;
               
    <div class="site-block white-t">
        <div class="site-block-head">
            @ForumContext.GetMvcText(LanguageSection.TOPICS, "SAID_LIKE")
        </div>
        <div class="site-block-content p-5">
            @Html.Raw(String.Format(ForumContext.GetText(LanguageSection.TOPICS, "WHO_SAID_LIKE"), Model.Count))
            @foreach (var like in Model)
            {
                x++;
                @string.Format("{0}", x > 1 ? ", " : "")
                @Html.Link(ForumContext.GetAbsoluteUrl(ForumUrls.USER_INFO, like.UserName), like.UserName) 
                @String.Format(" ({0})", ForumContext.PrettyDate(like.Created)) 
                
                
            }
        </div>
    </div>
}
